<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
    <a class="navbar-brand" href="#">YangYiQuan</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav mr-auto">
            <li class="nav-item">
                <a class="nav-link {{ if eq .nav `home`  }}active{{ end }}" href="{{ urlfor `HomeController.Index` }}">首页</span></a>
            </li>
            <li class="nav-item">
                <a class="nav-link {{ if eq .nav `query`  }}active{{ end }}" href="{{ urlfor `QueryController.Query` }}">用户管理</a>
            </li>
        </ul>
    </div>
    <span class="navbar-text">
         欢迎你！{{ .LoginUser.Name }}
    </span>
    <form class="form-inline">
        <a class="btn btn-link" href="{{ urlfor `AuthController.LoginOut` }}">退出登录</a>
    </form>
</nav>